package xian.woniu.mapper;

import java.util.List;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;
import xian.woniu.entity.Appointment;
import xian.woniu.entity.AppointmentExample;
@Repository
public interface AppointmentMapper {
    /**
     * 查询出患者取消的这个服务是否已完成
     */
    Appointment selAppoinmentAstate(@Param("pid") Integer pid,@Param("did") Integer did,@Param("atime") String atime);

    //查询患者预约表的各种状态
    List selAppointmentAstate();

    //查询患者是否在该天已经预约该医生
    Appointment selAppointmentRecord(@Param("pid") Integer pid,@Param("did")Integer did,@Param("atime")String atime);

    List selAppointmentTime1();

    int countByExample(AppointmentExample example);

    int deleteByExample(AppointmentExample example);

    int deleteByPrimaryKey(Integer aid);

    int insert(Appointment record);

    int insertSelective(Appointment record);

    List<Appointment> selectByExample(AppointmentExample example);

    Appointment selectByPrimaryKey(Integer aid);

    int updateByExampleSelective(@Param("record") Appointment record, @Param("example") AppointmentExample example);

    int updateByExample(@Param("record") Appointment record, @Param("example") AppointmentExample example);

    int updateByPrimaryKeySelective(Appointment record);

    int updateByPrimaryKey(Appointment record);
}